<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddTypeToVoicetextTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('voice_text', function (Blueprint $table) {
            $table->tinyInteger('type')->default(1)->comment('文案类型：1-声音资料文案；2-自动回复文案')->after('text');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('voice_text', function (Blueprint $table) {
            //
        });
    }
}
